package com.liziyi0914.morearmor.effect;

import com.liziyi0914.morearmor.StatusEffectManager;
import com.liziyi0914.morearmor.Utils;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.Items;

import java.util.function.Predicate;

public class SugarCaneEffect extends AbstractEffect {

    public SugarCaneEffect() {
        StatusEffectManager.registerEffect(this, StatusEffects.SPEED);
    }

    @Override
    public Predicate<LivingEntity> predicateArmor() {
        return Utils.hasItemArmor(Items.SUGAR_CANE);
    }

}
